package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 属性变量管理对象 reg
 * 
 * @author yaozh
 * @date 2024-03-01
 */
public class Reg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 变量ID，主键，自动递增 */
    @Excel(name = "变量ID",width=7)
    private Long regId;

    /** 设备ID，drinfo表的drid */
    @Excel(name = "设备ID，drinfo表的drid",width=7)
    private Long drId;
    private Long drtypeid;//传参使用
    @Excel(name = "设备名称",width=18)
    private String drName;
    /** 寄存器（寄存器名），qstag表的tagname */
    @Excel(name = "寄存器变量标识，qstag表的tagname",width=35)
    private String tagName;

    /** 寄存器值（初始值） */
    @Excel(name = "寄存器值",width=10)
    private String tagValue;

    /** 变量保存周期（存储周期）（未启用），5：每5分钟存储，10：每10分钟存储，30：每30分钟存储，60：每60分钟存储， */
    @Excel(name = "保存周期，每5、10、30、60分钟存储，",width=7)
    private String tagTime;

    /** 变量名称（中文名） */
    @Excel(name = "变量中文名称",width=20)
    private String regName;

    /** 变量名称（英文名） */
    @Excel(name = "变量英文名称",width=48)
    private String regNameen;

    /** 变量类型，1离散型，2长整型，3模拟型，4字符型 */
    @Excel(name = "变量类型，1离散型，2长整型，3模拟型，4字符型",width=7)
    private String regType;

    /** 单位 */
    @Excel(name = "单位",width=7)
    private String regUnits;

    /** 读写属性，1只读，2读写 */
    @Excel(name = "读写属性，1只读，2读写",width=7)
    private String regReadwrite;

    /** 变量分组ID，reg_group表的id */
    @Excel(name = "变量分组ID，reg_group表的id",width=7)
    private Long regGroupId;

    @Excel(name = "变量分组",width=10)
    private String regGroupName;

    /** 列表分组内顺序（界面上显示顺序） */
    @Excel(name = "列表展示的分组内顺序",width=7)
    private String regListshowlevel;

    /** 设备点位属性类型，1运行点位，2报警点位，3故障点位，默认null为一般的点位 */
    @Excel(name = "设备点位属性类型，1运行点位，2报警点位，3故障点位，默认null为一般的点位",width=7)
    private String regDrshowtype;

    /** 显示阈值，存储sub表的subid */
    @Excel(name = "数据回显ID，存储sub表的subid",width=7)
    private String regSub;

    @Excel(name = "数据回显",width=10)
    private String subName;

    /** $column.columnComment */
    @Excel(name = "regDrsub",width=7)
    private String regDrsub;

    /** 公式（由其他变量值计算） */
    @Excel(name = "公式",width=7)
    private String regmath;

    /** 颜色（显示颜色） */
    @Excel(name = "颜色",width=7)
    private String regcolor;

    /** 是否3D展示 */
    @Excel(name = "是否3D展示",width=10)
    private Long isThreedShow;

    /** 是否是历史记录，1历史记录，其它值 暂时不清楚 */
    @Excel(name = "是否是历史记录，1历史记录，其它值 暂时不清楚",width=7)
    private String isHistory;

    /** 是否是能耗记录，1能耗记录，其它值暂时不清楚 */
    @Excel(name = "是否是能耗记录，1能耗记录，其它值暂时不清楚",width=7)
    private String isEnergy;

    /** 是否报警，1报警，其他值暂时不清楚 */
    @Excel(name = "是否报警，1报警，其他值暂时不清楚",width=7)
    private String isAlarm;

    /** 报警类型 */
    @Excel(name = "报警类型",width=10)
    private String alarmtype;

    /** 报警类型ID（表示报警级别），alarmtype表的ID */
    @Excel(name = "报警类型ID",width=10)
    private String alarmLevel;

    /** 最小值 */
    @Excel(name = "最小值",width=7)
    private String valueMin;

    /** 最大值 */
    @Excel(name = "最大值",width=7)
    private String valueMax;

    /** 与或条件 */
    @Excel(name = "与或条件",width=7)
    private String andOr;

    /** 报警状态，0正常/已恢复，1报警中 */
    @Excel(name = "报警状态，0正常/已恢复，1报警中",width=7)
    private String tagAlarmState;

    public void setRegId(Long regId) 
    {
        this.regId = regId;
    }

    public Long getRegId() 
    {
        return regId;
    }
    public void setDrId(Long drId) 
    {
        this.drId = drId;
    }

    public Long getDrId() 
    {
        return drId;
    }

    public Long getDrtypeid() {
        return drtypeid;
    }

    public void setDrtypeid(Long drtypeid) {
        this.drtypeid = drtypeid;
    }

    public String getDrName() {
        return drName;
    }

    public void setDrName(String drName) {
        this.drName = drName;
    }

    public void setTagName(String tagName) 
    {
        this.tagName = tagName;
    }

    public String getTagName() 
    {
        return tagName;
    }
    public void setTagValue(String tagValue) 
    {
        this.tagValue = tagValue;
    }

    public String getTagValue() 
    {
        return tagValue;
    }
    public void setTagTime(String tagTime) 
    {
        this.tagTime = tagTime;
    }

    public String getTagTime() 
    {
        return tagTime;
    }
    public void setRegName(String regName) 
    {
        this.regName = regName;
    }

    public String getRegName() 
    {
        return regName;
    }
    public void setRegNameen(String regNameen) 
    {
        this.regNameen = regNameen;
    }

    public String getRegNameen() 
    {
        return regNameen;
    }
    public void setRegType(String regType) 
    {
        this.regType = regType;
    }

    public String getRegType() 
    {
        return regType;
    }
    public void setRegUnits(String regUnits) 
    {
        this.regUnits = regUnits;
    }

    public String getRegUnits() 
    {
        return regUnits;
    }
    public void setRegReadwrite(String regReadwrite) 
    {
        this.regReadwrite = regReadwrite;
    }

    public String getRegReadwrite() 
    {
        return regReadwrite;
    }
    public void setRegGroupId(Long regGroupId) 
    {
        this.regGroupId = regGroupId;
    }

    public Long getRegGroupId() 
    {
        return regGroupId;
    }

    public String getRegGroupName() {
        return regGroupName;
    }

    public void setRegGroupName(String regGroupName) {
        this.regGroupName = regGroupName;
    }

    public void setRegListshowlevel(String regListshowlevel) 
    {
        this.regListshowlevel = regListshowlevel;
    }

    public String getRegListshowlevel() 
    {
        return regListshowlevel;
    }
    public void setRegDrshowtype(String regDrshowtype) 
    {
        this.regDrshowtype = regDrshowtype;
    }

    public String getRegDrshowtype() 
    {
        return regDrshowtype;
    }
    public void setRegSub(String regSub) 
    {
        this.regSub = regSub;
    }

    public String getRegSub() 
    {
        return regSub;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public void setRegDrsub(String regDrsub) 
    {
        this.regDrsub = regDrsub;
    }

    public String getRegDrsub() 
    {
        return regDrsub;
    }
    public void setRegmath(String regmath) 
    {
        this.regmath = regmath;
    }

    public String getRegmath() 
    {
        return regmath;
    }
    public void setRegcolor(String regcolor) 
    {
        this.regcolor = regcolor;
    }

    public String getRegcolor() 
    {
        return regcolor;
    }
    public void setIsThreedShow(Long isThreedShow) 
    {
        this.isThreedShow = isThreedShow;
    }

    public Long getIsThreedShow() 
    {
        return isThreedShow;
    }
    public void setIsHistory(String isHistory)
    {
        this.isHistory = isHistory;
    }

    public String getIsHistory()
    {
        return isHistory;
    }
    public void setIsEnergy(String isEnergy)
    {
        this.isEnergy = isEnergy;
    }

    public String getIsEnergy()
    {
        return isEnergy;
    }
    public void setIsAlarm(String isAlarm)
    {
        this.isAlarm = isAlarm;
    }

    public String getIsAlarm()
    {
        return isAlarm;
    }
    public void setAlarmtype(String alarmtype) 
    {
        this.alarmtype = alarmtype;
    }

    public String getAlarmtype() 
    {
        return alarmtype;
    }
    public void setAlarmLevel(String alarmLevel) 
    {
        this.alarmLevel = alarmLevel;
    }

    public String getAlarmLevel() 
    {
        return alarmLevel;
    }
    public void setValueMin(String valueMin) 
    {
        this.valueMin = valueMin;
    }

    public String getValueMin() 
    {
        return valueMin;
    }
    public void setValueMax(String valueMax) 
    {
        this.valueMax = valueMax;
    }

    public String getValueMax() 
    {
        return valueMax;
    }
    public void setAndOr(String andOr) 
    {
        this.andOr = andOr;
    }

    public String getAndOr() 
    {
        return andOr;
    }
    public void setTagAlarmState(String tagAlarmState) 
    {
        this.tagAlarmState = tagAlarmState;
    }

    public String getTagAlarmState() 
    {
        return tagAlarmState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regId", getRegId())
            .append("drId", getDrId())
            .append("tagName", getTagName())
            .append("tagValue", getTagValue())
            .append("tagTime", getTagTime())
            .append("regName", getRegName())
            .append("regNameen", getRegNameen())
            .append("regType", getRegType())
            .append("regUnits", getRegUnits())
            .append("regReadwrite", getRegReadwrite())
            .append("regGroupId", getRegGroupId())
            .append("regListshowlevel", getRegListshowlevel())
            .append("regDrshowtype", getRegDrshowtype())
            .append("regSub", getRegSub())
            .append("regDrsub", getRegDrsub())
            .append("regmath", getRegmath())
            .append("regcolor", getRegcolor())
            .append("isThreedShow", getIsThreedShow())
            .append("isHistory", getIsHistory())
            .append("isEnergy", getIsEnergy())
            .append("isAlarm", getIsAlarm())
            .append("alarmtype", getAlarmtype())
            .append("alarmLevel", getAlarmLevel())
            .append("valueMin", getValueMin())
            .append("valueMax", getValueMax())
            .append("andOr", getAndOr())
            .append("tagAlarmState", getTagAlarmState())
            .toString();
    }
}
